package com.cloudwise.gproject.util;

import org.apache.shiro.crypto.hash.Sha512Hash;

import java.util.UUID;

/**
 * @ fileName:BussinessConstants
 * @ description:
 * @ author:zhz
 * @ createTime:2021/3/18 16:51
 */
public class BussinessConstants {

    /**
     * 用户验证相关的常量
     */
    public interface userCheck{
          String ALGORITHM_NAME="SHA-512";
          int HASH_ITERATOR=1024;
    }

    public static void main(String[] args) {
        String salt = UUID.randomUUID().toString();
        System.out.println(salt);
        Sha512Hash sha512Hash =new Sha512Hash("yys",salt,1024);
        System.out.println(sha512Hash.toString());
    }
}
